﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Catchbase.Service.API.UTest
{
    [TestClass]
    public class HttpRequestGatewayFactoryTest
    {
        [TestMethod]
        public void Create_MustReturnGatewayWithSuppliedUri()
        {
            var factory = new HttpRequestGatewayFactory();
            var uri = new Uri("http://localhost:666/");
            var result = factory.Create(uri);
            Assert.AreSame(uri, result.RequestedUri);
        }
    }
}